package yamen.bdwm.globals;

import android.content.Context;
import android.content.res.Configuration;
import android.util.DisplayMetrics;
import android.view.WindowManager;

public class GlobalFunc {
	public static boolean TwoPanelView(Context t)
	{
		WindowManager wm=(WindowManager) t.getApplicationContext().getSystemService("window");
		DisplayMetrics metrics = new DisplayMetrics();
		wm.getDefaultDisplay().getMetrics(metrics);
		if(t.getResources().getConfiguration().orientation==Configuration.ORIENTATION_LANDSCAPE)
		{
			if(metrics.widthPixels>480)
				return true;
		}
			
		return false;
	}
	
}
